package com.quanyan.comment.model.vo;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/5/31.
 */
public class RoleVo implements Serializable{

    private Integer roleId;

    private String systemCode;

    private String roleName;

    private String roleCode;

    private String remark;

    private Integer status;

    @Override
    public String toString() {
        return "RoleVo{" +
                "roleId=" + roleId +
                ", systemCode='" + systemCode + '\'' +
                ", roleName='" + roleName + '\'' +
                ", roleCode='" + roleCode + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }

    /**
     * 分页参数
     */
    private Integer pageNum ;

    /**
     * 每页的大小
     */
    private Integer pageSize;



    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageNum() {
        if(this.pageNum == null)
            this.pageNum = 1;

        if(this.pageNum <= 0) {
            this.pageNum = 1;
        }
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        if(this.pageSize == null)
            this.pageSize = 10 ;

        return pageSize;
    }

    public RoleVo() {
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getSystemCode() {
        return systemCode;
    }

    public void setSystemCode(String systemCode) {
        this.systemCode = systemCode;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
